package com.etc.dao;

import com.etc.model.Teacher;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface TeacherMapper {
    int deleteById(Integer id);

    int insert(Teacher record);

    int insertSelective(Teacher record);

    Teacher findById(Integer id);

    int updateByPrimaryKeySelective(Teacher record);

    int updateByPrimaryKey(Teacher record);

    List<Teacher> findByUsernameAndPassword(@Param("Username") String Username
            , @Param("Password") String Password);

    Teacher  findByUsername(@Param("Username") String Username);

    Teacher  findFirstByUsername(@Param("Username") String Username);

    List<Teacher> findAll();

}